<script setup lang="ts">
import ChannelNav from './components/ChannelNav.vue'
import ArticleList from './components/ArticleList.vue'
import { ref } from 'vue';

// 1. 频道id
const channelId = ref(0)
</script>

<template>
  <channel-nav :channel-id="channelId" @update-channel-id="channelId = $event"></channel-nav>
  <article-list :channel-id="channelId"></article-list>
</template>

<style scoped></style>
